/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package NN;

/**
 *
 * @author ollo
 */
public class Sigmoid {
    static public double Sig(double value) {
        return 1 / (1 + Math.exp(-value));
    }

    static public double SigPrim(double Gval) {
        return Gval * (1 - Gval);
    }

    static public double SigmoidPrim(double value) {
        return Sig(value) * (1 - Sig(value));
    }
}
